package com.simple.portal.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import freemarker.template.TemplateException;

@Controller
@RequestMapping("/apporder")
public class AppOrderController extends AbstractPortalBaseController{
	private final static String JSP_PATH = "_AppOrder";
	
	
	@RequestMapping("/new")  
    public String list(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("app_order_new");
    }
	
	@RequestMapping("/init")  
    public String init(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
		

        
        //appList(request, response);
        //dropList(request, response);
        //practiceList(request, response);
        return appList(request, response);
      
    }
	
	@RequestMapping("/app/add")  
    public String appAdd(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("app_add");
    }
	
	@RequestMapping("/app/delete")  
    public String appDelete(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
		

      
        return getJspPath("app_add");
    }
	
	@RequestMapping("/app/list")  
    public String appList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("app_list");
    }
	
	@RequestMapping("/drop/add")  
    public String dropAdd(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
		

      
        return getJspPath("drop_add");
    }
	
	@RequestMapping("/drop/delete")  
    public String dropDelete(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("drop_add");
    }
	
	@RequestMapping("/drop/list")  
    public String dropList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("drop_list");
    }
	
	@RequestMapping("/practice/add")  
    public String practiceAdd(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("practice_add");
    }
	
	@RequestMapping("/practice/delete")  
    public String practiceDelete(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("practice_add");
    }
	
	@RequestMapping("/practice/list")  
    public String practiceList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("practice_list");
    }
	
	@Override
    protected String getBaseJspPath() {
        return JSP_PATH;
    }
}

